<template>
	<view class="content">
		<image :src="common.appUrl.oss+common.imgList.sc10" mode="widthFix" class="success-img"></image>
		<view class="title">支付成功</view>
		<view class="name">可以在个人中心“待核销”查看</view>
		<view class="look" @click="reservation">查看订单</view>
		<view class="goBack" @click="home">返回首页</view>
	</view>
</template>

<script>
	import {
		mapState,
	} from 'vuex';
	export default {
		computed: {
			...mapState(['common'])
		},
		data() {
			return {

			}
		},
		methods: {
			home() {
				uni.switchTab({
					url: '/pages/lcIndex/lcIndex'
				})
			},
			reservation() {
				uni.switchTab({
					url: '/pages/lcMy/lcMy'
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.success-img {
		width: 110rpx;
		height: 110rpx;
		margin-top: 200rpx;
	}

	.title {
		font-size: 36rpx;
		font-weight: bold;
		margin-top: 46rpx;
		color: #333333;
	}

	.name {
		font-size: 30rpx;
		color: #999999;
		margin-top: 46rpx;
	}

	.look {
		width: 334rpx;
		height: 80rpx;
		background: #84BD00;
		border-radius: 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 30rpx;
		color: #FFFFFF;
		margin-top: 150rpx;
	}

	.goBack {
		width: 334rpx;
		height: 80rpx;
		border-radius: 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 30rpx;
		color: #333333;
		margin-top: 35rpx;
		border: 1px solid #DBDBDB;
		box-sizing: border-box;
	}
</style>